home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / toolbox / angle.r next >
Text File  |  1994-04-25  |  139b  |  10 lines

  1. //
  2. // Caclulate phase angle of a complex value.
  3. // angle = atan2(imag,real)
  4. //
  5.  
  6. angle = function(a)
  7. {
  8.   return atan2(imag(a), real(a));
  9. };
  10.